package cn.wolfcode.trip.base.util;

import lombok.Getter;

@Getter
public class JSONResult {
    //类上贴getter/检查pom里是否有jar包

    private boolean success=true;
    private String msg;//错误信息
    private Object result;//

    //登录失败调用这个方法
    public JSONResult mark(String msg){
        this.msg=msg;
        this.success=false;
        return this;
    }
    public JSONResult setResult(Object result){
        this.result=result;
        return this;
    }
}
